package com.qike.yuandongguoji.enums;

/**
 * 假期类型枚举
 */
public enum LeaveingOrderStatusEnums {
    YEARS                  (0,"年假"),
    THINGS                      (1,"事假"),
    SICK                      (2,"病假"),
    TIAOXIU                      (3,"调休"),
    SANGJIA                      (4,"丧假"),
    CHANJIA                      (5,"产假"),
    PEICHANJIA                      (6,"陪产假"),
    HUNJIA                      (7,"婚假"),
    BABY                      (8,"育儿假"),
    BABY_care                      (9,"产检"),
//    育儿假    2.产检   3.调休
    ;
    private Integer ecode;

    private String emsg;

    LeaveingOrderStatusEnums(Integer ecode, String emsg) {
        this.ecode = ecode;
        this.emsg = emsg;
    }

    public Integer getEcode() {
        return ecode;
    }

    public String getEmsg() {
        return emsg;
    }

    public static LeaveingOrderStatusEnums statOf(Integer ecode) {
        for (LeaveingOrderStatusEnums state : values())
            if (state.getEcode().equals(ecode))
                return state;
        return null;
    }
}
